
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <include file="public@head"/>
    <link rel="stylesheet" type="text/css" href="__INDEX__/css/public.css">
    <link rel="stylesheet" type="text/css" href="__INDEX__/css/news.css">
</head>
<body>

<include file='public@header'/>
<include file='public@neiye'/>

<!--container-->
<div class="container">
    <div class="address">
        <span>您所在的位置：</span>
        <a href="/">首页</a>
        <div class="addressBox">
            <a href="">新闻中心</a>
        </div>
    </div>

    <include file='public@left'/>

    <ul class="containerRight">
        <!--取得一个分页DataTable-->

        <php>
            $where= function($query){
            $query->whereTime('post.create_time','>=',0);
            };
            $page=[
            'list_rows'=>10,
            'next'=>'下一页',
            'prev'=>'上一页'
            ];
        </php>


        <portal:articles item="vo" where="$where" order="post.list_order,post.create_time DESC" page="$page" relation="categorie" categoryIds="$category.id" returnVarName="articles_data">


        <li class="news-newsItem">
            <a href="/newsdetail/{$vo.id}">
                <div class="time">
                    <span>{:date('m-d',$vo.published_time)}</span>
                    <p>{:date('Y',$vo.published_time)}</p>
                </div>
                <div class="newsItemText">
                    <h6>{$vo.post_title}</h6>
                    <p>{:mb_substr($vo['post_excerpt'],0,100,"utf-8")}...</p>
                </div>
            </a>
        </li>
        </portal:articles>


        <div class="page">
            <page/>
        </div>
    </ul>

</div>
<!--container-->

<include file='public@footer'/>


</body>
</html>